<?php
$content = new Models_Articles();
$user = new Models_User();
$newCommentsCount = $content->getNewCommentsCount();
$newUsersCount = $user->getNewUsersCount();
?>
<div class="navbar">
    <div class="navbar-inner">
        <ul class="nav">
                <li>
                    <div class="btn-group">
                      <button class="btn btn-info dropdown-toggle"  data-toggle="dropdown">
                          <i class="icon-align-justify icon-white"></i> Side menu
                          <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu" style="z-index: 99;">
                        <li>
                            <a href="/<?php $content->printPath(); ?>menu/add/head"><i class="icon-file"></i> Add new header</a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>articles/add"><i class="icon-file"></i> Add new article</a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>articles/addsub"><i class="icon-file"></i> Add new subarticle</a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/tree"><i class="icon-book"></i> Show full menu</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>articles/anonces/add"><i class="icon-file"></i> Add new anonce</a>
                        </li>   
                        <li>
                             <a href="/<?php $content->printPath(); ?>articles/anonces"><i class="icon-book"></i> Show all anonces</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>menu/add/top"><i class="icon-file"></i> Add new top menu</a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/top"><i class="icon-book"></i> Show full top menu</a>
                        </li>
                      </ul>
                    </div>
                </li>
                <li>
                    <div class="btn-group">
                      <button class="btn btn-info dropdown-toggle"  data-toggle="dropdown">
                          <i class="icon-envelope icon-white"></i> Comments
                          <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu">
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/comments">
                                <i class="icon-exclamation-sign"></i> Check new comments: 
                                <span class="badge badge-important"><?php echo $newCommentsCount['count(id)']; ?></span>
                            </a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/commentsall"><i class="icon-book"></i> Show all</a>
                        </li>
                      </ul>
                    </div>
                </li>
                <li>
                    <div class="btn-group">
                      <button class="btn btn-info dropdown-toggle"  data-toggle="dropdown">
                          <i class="icon-user icon-white"></i> Users
                          <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu">
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/newusers">
                                <i class="icon-exclamation-sign"></i> Check new users: 
                                <span class="badge badge-important"><?php echo $newUsersCount['count(id)']; ?></span>
                            </a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/users"><i class="icon-book"></i> Show all</a>
                        </li>
                      </ul>
                    </div>
                </li>
                <li>
                    <div class="btn-group">
                      <button class="btn btn-info dropdown-toggle"  data-toggle="dropdown">
                          <i class="icon-certificate icon-white"></i> Roles
                          <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu">
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/addrole"><i class="icon-plus-sign"></i>Add</a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>admin/show/roles"><i class="icon-book"></i> Show all</a>
                        </li>
                      </ul>
                    </div>
                </li>
                <li>
                    <div class="btn-group">
                      <button class="btn btn-info dropdown-toggle"  data-toggle="dropdown">
                          <i class="icon-tags icon-white"></i> Tags
                          <span class="caret"></span>
                      </button>
                      <ul class="dropdown-menu">
                        <li>
                            <a href="/<?php $content->printPath(); ?>articles/addtag"><i class="icon-file"></i> Add new tag</a>
                        </li>
                        <li>
                            <a href="/<?php $content->printPath(); ?>articles/tags"><i class="icon-book"></i> Show all</a>
                        </li>
                      </ul>
                    </div>
                </li>
                <li>
                    <div class="btn-group">
                        <a class="btn btn-warning" href="/<?php $content->printPath(); ?>libs/upload/"><i class="icon-upload icon-white"></i></a>
                    </div>
                </li>
                <li>
                    <div class="btn-group">
                        <a class="btn btn-danger" href="/<?php $content->printPath(); ?>admin/help">?</a>
                    </div>
                </li>
        </ul>
    </div>
    <!--/.navbar-inner -->
</div>